<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
    	<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<title></title>
		<link rel="stylesheet" href="../css/common/mui.css" />
		<link rel="stylesheet" href="../css/common/common.css" />
		<link rel="stylesheet" href="../css/this/account.css" />
		<link rel="stylesheet" href="../layer/skin/layer.css" />
	</head>
	<body>
		<div class='account theFirst'></div>
		
		<script type='text/template' id='tpl-account'>
			<section class='bGWhite pT7 pL12 pR12'>
				{{each notice_list as list}}
				<div class='pB7 account-news'>
					<p class='dIB lH16 fS13 wwB pL22 cBlack'>{{list.content}}</p>
				</div>
				{{/each}}
			</section>
		{{/*<!--收货地址-->*/}}
			<section class='mT7 bGWhite addr bB' >
				{{if address_list.name }}
					<div class='has-addr bT pL13 pR13'>
						<div class='lH43 bB'>
							<p class='dIB pSR pR5' style='top:2px'>
								<img src='../img/icon/addr.png' class='addr-icon'/>
							</p>
							<p class='fS15 cBlack dIB'>收货信息</p>
						</div>
						<div class='pT11 pB11 pSR pR15'>
							<p class='pB5 cBlack fS13'>
								<span>{{address_list.name}}</span>
								<span class='pL60'>{{address_list.mobile}}</span>
							</p>
							<p class='cBlack fS13 receive-addr' data-addrId='{{address_list.id}}' data-userId='{{address_list.userid}}'>{{address_list.area}}</p>
							<img src="../img/icon/right.png" class='vm rightC addr-right'/>
						</div>
					</div>
				{{else}}
					<section class='no-addr mui-row'>
						<div class='mui-col-xs-11 tC'>
							<p class='dIB pR7 pSR img'>
								<img src="../img/icon/add.png"  class='add-icon vm'/>
							</p>
							<p class='dIB cWhite fS16 '>新增收货地址</p>
						</div>
						<div class='mui-col-xs-1 pR17 pSR img'>
							<img src="../img/icon/rightW.png"  class='rightC vm'/>
						</div>
					</section>
				{{/if}}
			</section>
			{{/*订单列表开始	*/}}
			
			<section class='accout-list'>
				{{each list as list2 index}}
				
				<div class='list mT7 bT bGWhite'>
					<p class='lH48 pL12'>
						<span class='fS19 cBlack pR10'>订单{{index+1}}</span>
						<span class='fS13 cGrey'>{{list2.title}}</span>
					</p>
					{{each list2 as listin}}
						{{if listin.num}}
						<section class='bT'>
							<div class='mui-row product-mess bB list-detail'>
								<div class='mui-col-xs-3 pT10 pL12 pB7 pR10'>
									<img src="{{listin.pic}}" class='account-detailImg' />
								</div>
								<div class='mui-col-xs-9 pL10 pT12 pSR'>
									<p class='fS15 cBlack w80 limit-text title-detail'>{{listin.pname}}</p>
									<div class='mui-row  w pB6'>
										<div class='mui-col-xs-10'>
											<p class='dIB cBlack pR38 fS15 single-price'>&yen;<span class='p1'>{{listin.ms_price}}</span></p>
										</div>
										<div class='mui-col-xs-2 pR20 dele tR lH20 fS15' >
											X{{listin.num}}
										</div>
									</div>
								</div>
							</div>
						</section>
						{{/if}}
					{{/each}}
					<div class='pL22 pR20 bB'>
						<div class='lH43 oF bB'>
							<div class='fl fS15'>发货方式</div>
							<div class='fr'>
								<div class='dIB'>
									<p class='dIB pSR'  style='top:1px'>
										<img src="../img/icon/help.png" class='account-help'/>
									</p>
									<p class='dIB fS13 cBlack'>快递:<span class='kd'>{{if list2.free_money == 0}}0 {{else}}{{moneyFormat(list2.free_money,0)}}{{/if}}</span>元</p>	
								</div>
								<div class='dIB fS13 pL10'>
									<p class='dIB fS13 cBlack pR5'>税费：{{if list2.tax_price == 0}}0{{else}}{{list2.tax_price}}{{/if}}元</p>
									<p class='dIB fS13 cBlack'>运费险：{{if list2.ms_Freight_risk == 0}}0.00 {{else}}{{list2.ms_Freight_risk}}{{/if}}元</p>
								</div>
							</div>
						</div>
						<div class='lH43 oF'>
							<div class='fl fS15'>订单总计</div>
							<div class='fr fS15'>&yen;{{list2.total_price}}</div>
						</div>
					</div>	
				</div>
				{{/each}}
			</section>

			<h2 class='fWN fS18 lH48 pL12 bB'>优惠减免</h2>
				<div class='pL22 pR22 bB bGWhite'>
					<div class='lH43 oF bB'>
						<div class='fl fS15'>优惠券</div>
						<div class='fr use-vouchers'>
								<p class='dIB fS13 cGrey'>使用优惠券</p>
								<p class='dIB'>
									<img src="../img/icon/right.png" class='rightC pSR'/>
								</p>
						</div>
					</div>
					<div class='lH43 oF'>
						<div class='fl fS15'>余额支付</div>
						<div class='fr pR7 fS15'>
							<span class='dIB cRed fS12'>&yen;{{money}}</span>
							<div class="dIB mui-switch" id='switch' data-money='{{money}}'>
								<div class="mui-switch-handle"></div>
							</div>
						</div>
					</div>
					<div class='choice-pay pT12 pB12 pL3 pR3 dN'>
							<input type="number"  placeholder="请输入金额" id='pay-num' class='mB12 fS15' data-money='{{money}}'/>
							<button class='btn btn-white tC fS15 dN'>请先设置支付密码</button>
							<input type='password'  placeholder="请输入支付密码" id='pwd' class=' fS15' data-pwd='{{pay_password}}'/>
					</div>
				</div>
				<h2 class='fWN fS18 lH48 pL12 bB'>选择支付方式</h2>
				<div class='pL22 pR20 bB bGWhite'>
						<div class='lH43 oF bB alipay'>
							<div class='fl fS15'>
								<p class='dIB pSR' style='top:-1px'>
									<img src="../img/icon/alipay.png" class='pay-way vm'/>
								</p>
								<p class='dIB cBlack fS15'>支付宝</p>
							</div>
							<div class='fr'>
									<p class='dIB pSR pay-choice'  style='top:0px'>
										<img src="../img/icon/choice2.png" class='choice-css vm' />
									</p>
							</div>
						</div>
						<div class='lH43 oF weChat'>
							<div class='fl fS15'>
								<p class='dIB pSR' style='top:-1px'>
									<img src="../img/icon/wechat.png" class='pay-way vm'/>
								</p>
								<p class='dIB cBlack fS15'>微信</p>
							</div>
							<div class='fr'>
									<p class='dIB pSR pay-choice'  style='top:0px'>
										<img src="../img/icon/choice1.png" class='choice-css vm' />
									</p>
							</div>
						</div>
				</div>
				<div style='padding-bottom:11rem;'></div>
				<section class='acco w bGWhite oF  pL5 pR5 bT'>
					<p class='fS15 fl cBlack pL16 price lH56' >合计 ：<span class='cRed'>&yen;<span class='num'>{{total_money}}</span></span></p>
					<input type='hidden' value='0' class='total-num'/>
					<div class="fr" >
						<button class='btn btn-black ls2 topay fS15 mT4 mB5 fS15 pT14 pB14 pL35 pR35'>去支付</button>
					</div>
				</section>
			</script>
			<script src='../js/common/jquery.min.js'></script>
			<script src='../layer/layer.js'></script>
			<script src="../js/common/template.js"></script>
			<script src='../js/common/api.js'></script>
			<script src="../js/common/app.js"></script> 
			<script src='../js/common/header.js'></script>
			<script src='../js/common/footer.js'></script>
			<script src='../js/common/mui.min.js'></script>
			<script src='accout.js'></script>
	</body>
</html>
